package com.example.springbootdesign.controller;

import com.example.springbootdesign.util.MyLogger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    private MyLogger logger = new MyLogger();

    @RequestMapping("/createOrder")
    public String createOrder(String username) {
        System.out.println("createOrder!!!!!!!");
        logger.log(username + " createOrder!");
        return "createOrder";
    }
}
